<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>SIASS - SISTEMA DE ASISTENCIA</title>
    </h:head>
    <h:body>
        <center>
            <div style="width: 300px; height:100px; margin-top: 100px">
                <h:form id="form"> 
                    <p:growl id="growl" showDetail="true" />
                    <!--    <h2><h:outputText value="" style="font-weight: bold ; font-family: Cambria "/></h2> -->
                    <p:panel header="&nbsp;&nbsp;&nbsp;Iniciar Sesión" style="font-size: 14px; background: gainsboro">

                        <p:growl id="gro"></p:growl>
                        <h:panelGrid columns="2" cellpadding="5" >
                            <h:outputLabel for="username" value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Usuario :" 
                                           style="font-size: 14px; font-weight: bold ; font-family: Cambria ; color: #444b4f"  />                
                            <p:inputText value="#{loginBean.username}" id="username" required="true" label="Usuario" size="13" style="font-size: 14px"/>
                            <h:outputLabel for="password" value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contraseña:" style="font-size: 14px;
                                           font-weight: bold; font-family: Cambria ; color: #444b4f" />  
                            <h:inputSecret value="#{loginBean.password}" required="true" id="password" label="Contraseña" size="13" style="font-size: 14px"/>
                        </h:panelGrid> 
                        <f:facet name="footer">
                            <center>
                                <p:commandButton update="gro" id="loginButton" value="Iniciar Sesión" style="font-family: Cambria"    
                                                 action="#{loginBean.login()}"/>
                            </center>
                        </f:facet>

                    </p:panel> 

                </h:form>

            </div>
        </center>

        <p:ajaxStatus style="width:64px;height:64px;position:fixed;right:5px;bottom:5px">  
            <f:facet name="start">  
                <p:graphicImage value="resources/images/loading.gif" />  
            </f:facet>  

            <f:facet name="complete">  
                <h:outputText value="" />  
            </f:facet>  
        </p:ajaxStatus>
    </h:body>
</html>

